package com.tarena.luban.worker.server.service;

import com.tarena.luban.worker.server.repository.TestRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestService {
    // 保证有 实现类 容器bean对象才可以注入
    @Autowired
    private TestRepository testRepository;
    public Integer getWorkerCount(){
        return testRepository.getWorkerCount();
    }
}
